/*
 * Copyright (c) 2008 centrevillage <centrevillage@gmail.com>
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#ifndef  __EDITOR_FUNCTIONS_HPP__
#define  __EDITOR_FUNCTIONS_HPP__

// boost
#include <boost/shared_ptr.hpp>

// ravi
#include "types.hpp"

namespace editor {
class CustomScreenInfo;
class Screen;
}

namespace ravi {

// change event(change category)
val_t editor_chevent(arg_t& argv);
// change track
val_t editor_track(arg_t& argv);
// add screen
val_t editor_ascr(arg_t& argv);
// delete screen
val_t editor_dscr(arg_t& argv);
// register custom screen
val_t editor_register_editor(arg_t& argv);
// alert
val_t editor_alert(arg_t& argv);
// screen
val_t editor_screen(arg_t& argv);
// scrollbind
val_t editor_scrollbind(arg_t& argv);
// noscrollbind
val_t editor_noscrollbind(arg_t& argv);
// play
val_t editor_play(arg_t& argv);
// change to note screen
val_t editor_note_screen(arg_t& argv);
// change to event screen
val_t editor_event_screen(arg_t& argv);
// change to lyric screen
val_t editor_lyric_screen(arg_t& argv);
// change to custom screen
val_t editor_custom_screen(arg_t& argv);
// focused screen id
val_t editor_focused_screen_id(arg_t& argv);
// open vst editor
val_t editor_open_vst_editor(arg_t& argv);

// register keymap
val_t editor_register_keymap(arg_t& argv);

// change pixel per 4
val_t editor_change_pp4(arg_t& argv);

// function helpers
editor::CustomScreenInfo editor_register_editor_create_info(map_t* mv);
boost::shared_ptr<editor::Screen> get_editable_screen(arg_t& argv);

} /* -----  end of namespace  ravi  ----- */

#endif   /* ----- #ifndef __EDITOR_FUNCTIONS_HPP__  ----- */
